package com.audaque.springboot.foshanupload.web.mbdemo.one2many.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter@Setter@AllArgsConstructor@NoArgsConstructor@ToString
public class DepartmentQueryObject {
	//高级查询
	private String keyword;
	//页面基本参数
	private Integer currentPage=1;
	private Integer pageSize=5;
	//getter提供给分页使用
	public Integer getStart(){
		return (this.currentPage-1)*this.pageSize;
	}
}
